//
//  ZCTabBar.h
//  zctx
//
//  Created by apple on 16/2/24.
//  Copyright © 2016年 sanliang. All rights reserved.
//

#import <UIKit/UIKit.h>

@class ZCTabBar;

@protocol ZCTabBarDelegate <NSObject>

@optional
- (void)tabBar:(ZCTabBar *)tabBar didClickButton:(NSInteger)index;
/**
 *  点击加号按钮的时候调用
 */
- (void)tabBarDidClickPlusButton:(ZCTabBar *)tabBar;

@end

@interface ZCTabBar : UIView

@property (nonatomic, retain) UIImageView *backgroundView;

// items:保存每一个按钮对应tabBarItem模型
@property (nonatomic, strong) NSArray * items;

@property (nonatomic, weak) id<ZCTabBarDelegate> delegate;

- (void)setBackgroundImage:(UIImage *)img;




@end
